<?php
$turned_up = isset($raw_data['Serviced']) ? $raw_data['Serviced'] : array();
$not_turned_up = isset($raw_data['Not Serviced']) ? $raw_data['Not Serviced'] : array();
$status
?>
<div class="row-fluid">
    <div class="span12">

        <?php
            if($status == 'turned_up'){
        ?>
                <h4 class="widgettitle">Turned Up List.- <?php echo $table_title ;?>  </h4>
                <table class="table responsive table-bordered">
                    <thead>
                    <tr>
                        <th></th>
                        <th>Registration Number</th>
                        <th>Customer Name</th>
                        <th>Reported</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php
                    $count = 1;
                    foreach($turned_up as $dt){
                        ?>
                        <tr>
                            <td><?php echo $count; ?></td>
                            <td><?php echo $dt['vehicle_number']; ?></td>
                            <td><?php echo $dt['name']; ?></td>
                            <td><?php echo $dt['turned_up_date']; ?></td>
                        </tr>
                        <?php
                        $count++;
                    }
                    ?>
                    </tbody>
                </table>
        <?php
            }
            else{
        ?>
                <h4 class="widgettitle">Not Turned Up List.- <?php echo $table_title ;?> </h4>
                <table class="table responsive table-bordered">
                    <thead>
                    <tr>
                        <th></th>
                        <th>Registration Number</th>
                        <th>Customer Name</th>
                        <th>Expected</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php
                    $count = 1;
                    foreach($not_turned_up as $dt){
                        ?>
                        <tr>
                            <td><?php echo $count; ?></td>
                            <td><?php echo $dt['vehicle_number']; ?></td>
                            <td><?php echo $dt['name']; ?></td>
                            <td><?php echo $dt['expected']; ?></td>
                        </tr>
                        <?php
                        $count++;
                    }
                    ?>
                    </tbody>
                </table>
        <?php
            }
        ?>

    </div>
</div>
